import request from '../utils/request';
import constant from '../constant/constant'
import qs from 'qs';

/**
 * 获取技术征求信息列表
 */
export function getSeekTechnologyTableData(){
    let option = {
        method: 'GET',
        headers: {
            "Content-Type": "application/x-www-form-urlencoded"
        },
        mode: "cors",
    }

    return request(constant.serverUrl + '/tvs/api/technology/solicitation/list', option)
}

/**
 * 创建技术征求数据
 */
export function createTechnologySeek(payload){
    let option = {
        method: 'POST',
        body: qs.stringify(payload),
        headers: {
            "Content-Type": "application/x-www-form-urlencoded"
        },
        mode: "cors",
    }
    return request(constant.serverUrl + '/tvs/api/technology/solicitation/create', option)
}

/**
 * 删除技术征求信息
 */
export function deleteTechnologySeek(payload){
    let option = {
        method: 'POST',
        body: qs.stringify(payload),
        headers: {
            "Content-Type": "application/x-www-form-urlencoded"
        },
        mode: "cors",
    }
    return request(constant.serverUrl + '/tvs/api/technology/solicitation/delete/byid', option)
}